package com.atguigu.srb.core.service;

import com.atguigu.srb.core.pojo.entity.Lend;
import com.atguigu.srb.core.pojo.entity.vo.BorrowApprovalVO;
import com.atguigu.srb.core.pojo.entity.vo.LendDetailVO;
import com.atguigu.srb.core.pojo.entity.vo.LendSearchVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 标的准备表 服务类
 * </p>
 *
 * @author Atguigu
 * @since 2023-05-26
 */
public interface LendService extends IService<Lend> {

    void borrowApproval(BorrowApprovalVO borrowApprovalVO);

    List<Lend> listLends();

    LendDetailVO getLendDetailVOById(String id);

    List<Lend> listLendsByCondition(LendSearchVO lendSearchVO);

    Lend getLendById(String id);

    void makeLoad(String id);

    boolean isMyLend(String id, String token);
}
